Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.

Fixing 200 HTTP response with empty body#340

Open
Yooooomi wants to merge 1 commit intocodemanki:masterfrom
Yooooomi:master
Open

Fixing 200 HTTP response with empty body#340
Yooooomi wants to merge 1 commit intocodemanki:masterfrom
Yooooomi:master

Conversation

@Yooooomi
Copy link

@Yooooomi Yooooomi commented Apr 6, 2020

I just encountered a case where cloudflare were returning 200 OK, but the code was still throwing an error. Fixed that by checking the length of the body and also the response status code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants